<?php
/**
 * SocialEngine
 *
 * @category   Application_Extensions
 * @package    Like
 * @copyright  Copyright Hire-Experts LLC
 * @license    http://www.hire-experts.com
 * @version    $Id: _composeLikeBox.tpl 2010-09-07 17:53 idris $
 * @author     Idris
 */
?>

<div class="like_box_container" style="width: 240px;border-color: #315C99 #AAAAAA #AAAAAA;border-style: solid;border-width: 1px;overflow: hidden;-moz-border-radius: 0px;-webkit-border-radius: 0px;border-radius: 0px;font-family: tahoma,arial,verdana,sans-serif;background: transparent;text-decoration: none;">
	<div class="like_box_header" style="font-family: tahoma,arial,verdana,sans-serif;border-bottom: 1px solid #C6CEDD; color: #1C2A47; cursor: default; padding-bottom: 7px; padding-top: 8px; padding-left: 10px; padding-right: 10px;	background-color: #EDEFF4;	font-weight: bold;  font-size: 13.3333px;  font-weight: bold;  font-style:	normal;  text-transform:	none;  text-decoration:	none;  letter-spacing:	normal;  word-spacing:	normal;  line-height:	16px;  text-align:	left;  vertical-align:	baseline;  direction:	ltr;  text-decoration: none;">
	  <span class="header_text" style="font-family: tahoma,arial,verdana,sans-serif;float: left;display: block;font-weight: bold;"><?php echo $this->translate("like_Find us on"); ?> <?php echo $this->htmlLink($this->base_url . $this->baseUrl(), $this->layout()->siteinfo['title'], array('style'=>'text-decoration:none;')); ?></span>
	  <?php if ($this->icon_url): ?>
	  <span class="header_image" style="float: right;display: block;">
	    <?php echo $this->htmlImage($this->icon_url); ?>
	  </span>
	  <?php endif; ?>
	  <div style="clear: both;"></div>
	</div>
	<div class="like_box_content" style="padding: 5px;">
		<div class="like_box_info" style="margin: 5px;	border-bottom: 1px solid #D8DFEA;">
			<div class="like_box_left" style="float: left;	padding: 5px;">
				<div class="like_box_photo">
					<a target="_blank" style="text-decoration:none;font-weight: bold;" " href="<?php echo 'http://'.$_SERVER['HTTP_HOST'].$this->subject->getHref(); ?>">
					<?php
					  $class = "thumb_icon item_photo_like_club";
          if (!$this->subject->getPhotoUrl('thumb.icon')){
            $class .= " item_nophoto";
						$photo_url = $this->baseUrl()."/application/modules/Like/externals/images/nophoto_like_thumb_icon.png";
					}else{
						$photo_url = $this->subject->getPhotoUrl('thumb.icon');
					}
					?>
						<img border="0" width='48px' height='48px' style="border:1px solid #DDDDDD;" class="<?php echo $class; ?>" src="<?php echo 'http://'.$_SERVER['HTTP_HOST'].$photo_url; ?>" />
					</a>
				</div>
			</div>
			<div class="like_box_right" style="float: left;	padding: 5px; margin-top: 5px;">
				<div class="like_box_details"><?php echo $this->htmlLink('http://'.$_SERVER['HTTP_HOST'].$this->subject->getHref(), $this->subject->getTitle(), array('class' => 'bold', 'target' => '_blank', 'style' => 'text-decoration:none;font-weight: bold;font-size: 14px;')); ?></div>
				<div style="clear: both;"></div>
				<div class="like_box_become_like" style="margin-top: 2px;"><?php echo $this->htmlLink('http://'.$_SERVER['HTTP_HOST'].$this->subject->getHref(), $this->translate('like_Like'), array('target' => '_blank', 'style' => '	font-size: 11px;	-moz-border-radius-bottomleft: 3px;	-moz-border-radius-bottomright: 3px;	-moz-border-radius-topleft: 3px;	-moz-border-radius-topright: 3px;	border: 1px solid #CAD4E7;	display: block;	float: left;	padding: 4px 5px; text-decoration:none;	background-color: #ECEEF5;')); ?></div>
				<div style="clear: both;"></div>
			</div>
			<div style="clear: both;"></div>
		</div>
		<?php if ($this->likes->getTotalItemCount() > 0): ?>
			<div class="like_box_desc" style="font-family: tahoma,arial,verdana,sans-serif; padding: 5px 0 4px 5px;	font-size: 11px;"><?php echo $this->translate(array("like_%s person like it.", "like_%s people like it.", $this->likes->getTotalItemCount()), ($this->likes->getTotalItemCount())); ?></div>
			<div class="like_box_likes" style="padding: 5px;">
				<?php if ($this->likes->getCurrentItemCount() > 0): ?>
					<?php foreach ($this->likes as $like): ?>
						<div class="like_box_like" style="float: left;	padding: 2px;	width: 50px;">
							<div class="l"><?php echo $this->htmlLink('http://'.$_SERVER['HTTP_HOST'].$like->getHref(), $this->likePhoto($like, 'thumb.icon', '', array('width' => '48px', 'height' => '48px', 'style' => 'text-decoration:none;border:1px solid #DDDDDD;')), array('target' => '_blank', 'border' => 0));  ?></div>
							<div class="r"><?php echo $this->htmlLink('http://'.$_SERVER['HTTP_HOST'].$like->getHref(), $like->getTitle(), array('target' => '_blank', 'style' => 'text-decoration:none;color: #808080; font-size: 9px; padding-top: 2px; text-align: center; white-space: normal; display: block; width: 50px; height: 22px; line-height:1;')); ?></div>
							<div style="clear: both;"></div>
						</div>
					<?php endforeach; ?>
				<?php else: ?>
					<div class="like_box_no_result like_box_desc" style="padding: 5px 0 4px 5px;	font-size: 11px;"><?php echo $this->translate("like_There is no likes."); ?></div>
				<?php endif; ?>
			</div>
		<?php endif; ?>
	</div>
	<div style="clear: both;"></div>
</div>